/*
 * Copyright (C) 2010-2012 Enrique Lara (enrique.posix2.lara@gmail.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package app.transitalarm.model;

import android.media.Ringtone;

import android.net.Uri;

public interface Alarm {
    Agency getAgency();

    Uri getUri();

    int getId();

    boolean isEnabled();

    int getHour();

    int getMinute();

    int getRepeat();

    String getTimeStr();

    String getStopCode();

    String getRouteCode();

    Route getRoute();

    String getDirection();

    int getMaxTime();

    int getMinTime();

    String getStopName();

    String getDirectionName();

    String getLabelOrStopName();

    String getLabel();

    String getRingtone();

    Ringtone getRingtoneObj();

    boolean isVibrate();

    int getImageId();

    void setEnabled(final boolean enabled);

    void setRepeat(final int repeat);

    void setHour(final int hour);

    void setMinute(final int minute);

    void setStop(final String stationCode);

    void setRoute(final String line);

    void setDirection(final String direction);

    void setMaxTime(final int maxTime);

    void setMinTime(final int minTime);

    void setLabel(final String label);

    void setRingtone(final String ringtone);

    void setVibrate(final boolean vibrate);

    void setImageId(final int resourceId);

    boolean gotoView();

    boolean gotoEdit();

    boolean isDirty();

    boolean updateQuiet();

    boolean update();

    boolean delete();

    boolean startPollingNow();

    boolean startPollingIn(final int minutes);

    void cancelAlarm();

    String getRepeatStr();

    boolean isActiveToday();

    boolean isSilent();
}
